﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<AnalisisDeRiesgos.Models.Management.SearchManagementModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Gerencias/Jefaturas
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Gerencias/Jefaturas</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Campos</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Pattern) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Pattern) %>
                <%: Html.ValidationMessageFor(model => model.Pattern) %>
                <input type="submit" value="Buscar" />
            </div>
            <%: Html.ActionLink("Registrar Gerencia/Jefatura", "Create") %> 
        </fieldset>

    <% } %>

    <% if (Model.ManagementInfo.Count > 0)
           Html.RenderPartial("~/Views/Management/IndexList.ascx", Model.ManagementInfo);
    %>
</asp:Content>

